<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.util.*" %>
<%@ page import="java.sql.*" %>
<%@ page import="com.cqggrw.util.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>公共人物网后台管理</title>
<link type="text/css" rel="Stylesheet" href="../Content/tabbed_pages.css" />
<link type="text/css" rel="Stylesheet" href="../Content/Index.css" />
<script type="text/javascript" src="../../jslib/jquery-1.8.0.min.js"></script>
<script type="text/javascript">

function WebForm_OnSubmit() {
	if($('#nameId').val().length == 0) {
		$('#nameSpan').html('<font color="red">*必填项目</font>');
		return false;
	}
	if($("#imgId").val() == '') {
		$('#imgSpan').html('<font color="red">*请选择上传图片</font>');
		return false;
	}
	if($('#imgLinkId').val().length == 0) {
		$('#imgLinkSpan').html('<font color="red">*必填项目</font>');
		return false;
	}
	return true;
}

</script>
</head>
<body>
	<form name="form1" method="post" action="flashAction!add.action" onsubmit="javascript:return WebForm_OnSubmit();" id="form1" enctype="multipart/form-data">
		<div class="form-div textLeft">
			<h1>
				<span class="action-span"><a href="FlashList.jsp">Flash列表</a>
				</span> <span class="action-span1 fs20">公共人物网 管理中心 </span><span class="action-span1 paddingTop5"> - 分类编辑 </span>
			</h1>
			<div style="clear:both"></div>
		</div>
		<div id="gallery">
			<div class="on" title="CommonInfo">
				<span>分类信息</span>
			</div>
			<%
				String message = (String)request.getAttribute("message");
				if(message != null) {
					out.print(message);
				}
			%>
		</div>
		<div id="CommonInfo" class="show">
			<table width="90%" id="general-table" align="center">
				<tr>
					<td>图片名称： <input name="name" type="text" id="nameId" /> <span id="nameSpan"></span></td>
				</tr>
				<tr>
					<td>展示页面： <select name="disPage" id="disPageId" MaxLength="30" style="height:20px;width:120px;">
					<option value="0">一级页面展示</option>
					<option value="1">二级页面展示</option>
					</select>
				</tr>
				<tr>
					<td>图片属性： <input name="chkTop" type="checkbox" value="1" id="chkTopId" />置顶 <span id="chkTopSpan"></span></td>
				</tr>
				<tr>
					<td>添加图片： <input name="img" type="file"  id="imgId" /> 链接地址：
					 <input name="imgLink" type="text" id="imgLinkId" />
					<span id="imgLinkSpan"></span></td>
				</tr>
				<tr>
					<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span id="imgSpan"></span></td>
				</tr>
			</table>
		</div>
		<div class="form-div textLeft" style="text-align:center;margin-top:5px;">
			<input type="submit" name="btnSave" value="保存" onclick="" id="btnSave" class="button" />
		</div>
	</form>
</body>
</html>